/*河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
*/
package cn.javaxc.system.action.systemadmin;
import java.io.*;
import java.util.*;
import java.sql.*;
import cn.javaxc.model.base.SQL;
import cn.javaxc.model.base.SQLList;
import cn.javaxc.model.base.SQLMap;
import cn.javaxc.model.base.SQLParam;
import cn.javaxc.model.page.BatisPage;
import cn.javaxc.mvcwork.controller.web.TreeBean;
import cn.javaxc.mvcwork.util.common.CommonUtil;
import cn.javaxc.mvcwork.util.common.MapListUtil;
import cn.javaxc.mvcwork.util.helper.FrameHelper;
import cn.javaxc.mvcwork.util.helper.TreeTableHelper;
import org.springframework.beans.factory.annotation.Autowired;
import cn.javaxc.system.action.base.BaseAction;
import cn.javaxc.system.mapper.systemadmin.WorkFlowModifyMapper;
public class WorkFlowModify extends BaseAction
{
    @Autowired(required=false)
	private WorkFlowModifyMapper mapper;
    /**
    修改阶段
    */
    
    public Map upStage() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> t_phase=mapper.t_phase(params);
        SQLMap t_phase_emt=t_phase.getExistfirst();
        result.put("t_phase", t_phase_emt);
        
        return result;
    }
    /**
    添加步骤
    */
    
    public Map stepAdd() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> t_phase=mapper.t_phase(params);
        SQLMap t_phase_emt=t_phase.getExistfirst();
        result.put("t_phase", t_phase_emt);
        
        return result;
    }
    /**
    修改步骤
    */
    
    public Map upStep() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> t_step=mapper.t_step(params);
        SQLMap t_step_emt=t_step.getExistfirst();
        result.put("t_step", t_step_emt);
        
        return result;
    }
    /**
    步骤配置
    */
    
    public Map stepManage() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> t_config=mapper.t_config(params);
        SQLMap t_config_emt=t_config.getExistfirst();
        result.put("t_config", t_config_emt);
        
        
        SQLList<SQLMap> t_step=mapper.t_step(params);
        SQLMap t_step_emt=t_step.getExistfirst();
        result.put("t_step", t_step_emt);
        
        return result;
    }
    /**
    增加下一个阶段修改
    */
    
    public Map addNextStageSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        int i = mapper.i(params);
        result.put("i", i);
        
        return result;
    }
    /**
    修改阶段修改
    */
    
    public Map upStageSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.upStageSubmit(params);
        
        return result;
    }
    /**
    添加步骤修改
    */
    
    public Map stepAddSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        int i = mapper.i(params);
        result.put("i", i);
        
        return result;
    }
    /**
    修改步骤修改
    */
    
    public Map upStepSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.upStepSubmit(params);
        
        return result;
    }
    /**
    步骤配置修改
    */
    
    public Map stepManageSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.stepManageSubmit(params);
        
        return result;
    }
}